$(function() {
	$("#addBtn").bind("click",function(){
		window.open("contract/contract!newEdit",'_addwin');
	});	
	$("div.pagination ul li a").bind("click",function(){
		if($(this).hasClass('noclick'))return;
		var page = $(this).attr("page");
		var link = "contract/contract!pager?page="+page+"&rows=10";
		doGet(link);		
	});
});

function removeOne(id) {	
	var evt = getEvent();
	var that = evt.srcElement;
	$.post("contract/contract!remove","bean.id="+id,function(data){
		$(that).parent().parent().remove();
	});
}
function openOne(id){
	var url = "contract/contract!get?bean.id="+id;
	window.open(url,'myplan',"_blank");
}

function importData(){
	var url="contract/contract-uploador";
	window.showModalDialog(url,window);
}
function search(){	

}